<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>区域</title>
    <style type="text/css">

        #add{
            padding-left:500px;

        }
    </style>
</head>
<body>
<div align="center">
    <h1>区域信息</h1>
    <a id="add" th:href="@{/area/add}" style="margin-right: 350px">添加区域信息</a>
    <table>
        <tr style="background-color:#ADD8E6">
            <th>区域ID</th>
            <th>区域编码</th>
            <th>区域名称</th>
            <th>机组名称</th>
            <th>执行操作</th>
        </tr>
        <tr id="list" th:each="al : ${list}">
            <td style="text-align: center" th:text="${al.id}"></td>
            <td th:text="${al.areaCode}"></td>
            <td th:text="${al.areaName}"></td>
            <td th:text="${al.unitName}"></td>

            <td>
                <a th:href="@{/area/delete/{Id}(Id=${al.id})}">删除</a>
                <a th:href="@{/area/update/{Id}(Id=${al.id})}">修改</a>
            </td>
        </tr>
    </table>

</div>
</body>
</html>